cap log close
clear
set more off
global projdir "Q:/dc1prhcmsas01/PU2/code"

*Plot the probability of overtime pay as a function weekly base pay (Figure B1)
*Only run lines 97-108 and 155-157. The other lines are for another project.
*do "$projdir/18_distributions_workers.do"

*Plots the separation rates of incumbents over time (Figure 8a) and estimates diff-in-diff comparing treated to untreated workers
do "$projdir/17_workers_separation.do"

*Estimate and plot diff-in-diff comparing overtime pay between treated and control workers given their April 2016 characteristics
*do "$projdir/6_reg_wage_growth_apr.do" // This code only needs to be run if you haven't run it in 1_stayers.do. It estimates the diff-in-diff.
do "$projdir/7_plot_reg_growth_ot_labels.do"  //This code plots the estimates

*Explores heterogeneity in the bunching effect by firm's usual month of wage change (Appendix D)
do "$projdir/5_clean_staggered_bargaining.do" //Identifies the month that workers receive a raise
do "$projdir/6_staggered_bargaining.do" //Estimate diff-in-diffs and plot graphs

*Estimates regression discontinuities in the characteristics of new hires pre and post policy (Appendix E)
do "$projdir/9_new_hires_history_wide.do" // Create a panel of new hires (with a larger range of base pay than in 3_new_hires.do) 
do "$projdir/11_plot_rd_hires_detrended.do" // Clean the data, plot raw means of new hires characteristics against weekly base pay (Figure E1)
do "$projdir/10_reg_hires_rd.do" // Estimate regression discontinuities
do "$projdir/11_plot_rd_hires.do" // Plot the RD estimates over time (Figure E2)
do "$projdir/11_table_rd_hires.do" // Summarize the RD estimates (Table E2)

*Compare separation rates between incumbents in treated year and previous year
do "$projdir/17_workers_separation_cross_year.do" // Estimate regressions
do "$projdir/18_workers_separation_table_figure_v2.do" // Plot and summarize them (Figure F1 and Table F1)

cap log close
